use axum::http::StatusCode;
use axum::response::IntoResponse;
use axum::routing;
use axum::{Json, Router};
use serde_json::json;

pub fn set_routes() -> Router {
    Router::new().route("/", routing::get(index))
}

async fn index() -> impl IntoResponse {
    (
        StatusCode::OK,
        Json(json!({
            "name": "stock-service"
        })),
    )
}
